package charpter13.lynx;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Eleven {
	public static void main(String[] args) {
		Pattern pattern = Pattern
				.compile("(?i)((^[aeiou])|(\\s+[aeiou]))\\w+?[aeiou]\\b");
		String test = "Arline ate eight apples and one orange while Anita hadn't any";
		Matcher matcher = pattern.matcher(test);
		while (matcher.find()) {
			System.out.println(matcher.group());
		}
	}
}
